import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
import { IsNotEmpty } from "class-validator";
export class GetSetingDto {
    /** code */
    @IsNotEmpty({ message: 'code不能为空' })
    @ApiProperty({
        type: String,
        name: 'code',
        description: 'code',
    })
    public readonly code: string;
}
export class CreateSetingDto {
    /** code */
    @IsNotEmpty({ message: 'code不能为空' })
    @ApiProperty({
        type: String,
        name: 'code',
        description: 'code',
    })
    public readonly code?: string;
    /** 内容 */
    @IsNotEmpty({ message: '内容不能为空' })
    @ApiProperty({
        type: String,
        name: 'data',
        description: '内容',
    })
    public readonly data?: string;
}
export class UpdateSetingDto extends CreateSetingDto {
    @IsNotEmpty({ message: 'id不能为空' })
    @ApiProperty({
        type: Number,
        name: 'id',
        description: 'id',
    })
    public readonly id: number;
}